how to find mail is  queued .

hi,

want to send an email two ice a day, from database.
so i have planned to make a storedproce which will be called by
a job (which will select some record from one table and put it in other table based on a flag)
but i want to run it in a transaction so that if email is send successfully
then only it should commit else it should rollback.

q1) how  can i find that "Mail queued" now i should commit.

q2) if there is any other way to solve the problem , then please tel me. (will ssis be better than above one)
your sincerely


July 19th, 2015 1:31pm

The problem is imho "sent succesfully". Even if sent successfully, it does not necessarily mean that it will arrive at the recipients.

Free Windows Admin Tool Kit Click here and download it now
July 19th, 2015 4:50pm

Hi,

Please check if this link give you the answer:
Check the Status of E-Mail Messages Sent With Database Mail

July 19th, 2015 7:40pm

Hello,

You can get the information from System view sysmail_allitems (Transact-SQL) in sys database "msdb".

Free Windows Admin Tool Kit Click here and download it now
July 20th, 2015 3:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics